package com.daedalus.Polimorfizmi.InterfaceAbstractShape;

public class Triangle extends TwoDimensionalShape{

	public Triangle(double dim){
		super(dim);
	}
	
	@Override
	public double getArea(){
		return (getDimension()*Math.sqrt(3.0))/2.0;
	}
	public String toString(){
		return String.format("Object : Triangle  \n Brinja: %.2f",getDimension());
	}
}
